package com.hanko.oauth.servcie.impl;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hanko.oauth.entity.SysUser;
import com.hanko.oauth.mapper.SysUserMapper;
import com.hanko.oauth.servcie.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements UserService {
    @Override
    public SysUser findUserByName(String username){
        EntityWrapper<SysUser> ew = new EntityWrapper<SysUser>();
        ew.eq("username",username);
        return baseMapper.selectOneByWapper(ew);
    }

}
